Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation hide Roles and Permissions in menu when with viewAny. #4

Merged

Conversation

fbrissi
Copy link
Contributor

@fbrissi fbrissi commented Mar 7, 2019

In fact, when you create policy for roles and permission, both are not hidden.

Added @can for viewAny to hide when no has access.

@fbrissi
Copy link
Contributor Author

fbrissi commented Mar 7, 2019

But this required implementation creates RolePolicy and PermissionPolicy. These policies should be created in framework or by implementation?

@bajramemini
Copy link
Contributor

Hello @fbrissi

Thanks for improving the package. Going to merge this in as soon as I decide whether there should be a RolePolicy and PermissionPolicy in the Package.

Regards

@xenonthong
Copy link

@bajramemini if you do not plan to merge this PR. Perhaps I can include a documentation for others to implment it themselves should they choose to.

@bajramemini bajramemini merged commit 077437a into eminiarts:master Apr 29, 2019
bajramemini added a commit that referenced this pull request Jul 5, 2019
Revert changes from Pull Request #4 because it caused the tool not to work properly without Gates/Policies. It only hides the tool and does not protect the routes/resources fully. Fixes #9 and resolves the need to add `vyuldashev/nova-permission` for the Gates/Policies #18. Will think about hiding Resources in the future, but added a note to the readme to hide the tool with the `canSee` method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants